package com.zhonghui.procurement.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 采购公告
 */
public class PurchaseAnnouncementVo implements Serializable {

    @ApiModelProperty("列表id")
    private Integer listId;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("发布者")
    private String publisher;

    @ApiModelProperty("联系方式")
    private String contactInformation;

    @ApiModelProperty("采购内容")
    private String text;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("发布时间")
    private Date releaseTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("结束时间")
    private Date endTime;


    @ApiModelProperty("上传文件")
    private String attachment;

    @ApiModelProperty("企业采购")
    private String announcementType;

    @ApiModelProperty("企业采购")
    private String listType;

    @Override
    public String toString() {
        return "PurchaseAnnouncementVo{" +
                "listId=" + listId +
                ", title='" + title + '\'' +
                ", publisher='" + publisher + '\'' +
                ", contactInformation='" + contactInformation + '\'' +
                ", text='" + text + '\'' +
                ", releaseTime=" + releaseTime +
                ", endTime=" + endTime +
                ", attachment='" + attachment + '\'' +
                ", announcementType='" + announcementType + '\'' +
                ", listType='" + listType + '\'' +
                '}';
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getListId() {
        return listId;
    }

    public void setListId(Integer listId) {
        this.listId = listId;
    }

    public String getListType() {
        return listType;
    }

    public void setListType(String listType) {
        this.listType = listType;
    }

    public String getAnnouncementType() {
        return announcementType;
    }

    public void setAnnouncementType(String announcementType) {
        this.announcementType = announcementType;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public String getContactInformation() {
        return contactInformation;
    }

    public void setContactInformation(String contactInformation) {
        this.contactInformation = contactInformation;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Date getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(Date releaseTime) {
        this.releaseTime = releaseTime;
    }

    public String getAttachment() {
        return attachment;
    }

    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }
}
